package com.dingreading.cloud.soms.service;

import com.dingreading.cloud.common.base.R;
import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.soms.dto.MstXcxStudentHomeworkDto;
import com.dingreading.cloud.soms.entity.Staff;
import com.dingreading.cloud.soms.entity.StaffRoles;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.dingreading.cloud.soms.entity.MstXcxStudentHomework;

/**
 * 小程序学生课后作业表 服务层。
 *
 * @author EDY
 * @since 2025-11-03
 */
public interface MstXcxStudentHomeworkService extends IService<MstXcxStudentHomework> {

    Page<MstXcxStudentHomeworkDto> pageList(
            PageUtil pageUtil, String corpUid, String storeUid, String staffUid, String staffName,
            String keyword, String subjectUid, String beginDate, String endDate, Staff staff,
            StaffRoles staffRole);

    R<Object> getBean(String corpUid, String storeUid, String staffUid, String staffName, String uid, String ip);

    R<Object> correct(
            String corpUid, String storeUid, String staffUid, String staffName,
            String uid, Integer status, Integer teacherScore, String evaluationText, Staff staff, StaffRoles staffRole
    );
}
